import { Row, Card, Col, Icon } from 'antd';

import React from 'react';

import { Button } from 'antd/lib/radio';

interface AddPanelProps {
  onAddButtonClick: () => void;
}

export default (props => (
  <Row>
    <Card>
      <Row type="flex" justify="space-between" align="middle">
        <Col>
          <Icon type="unordered-list" />
          <span style={{ marginLeft: '5px' }}>数据列表</span>
        </Col>
        <Col>
          <Button onClick={props.onAddButtonClick}>添加</Button>
        </Col>
      </Row>
    </Card>
  </Row>
)) as React.FC<AddPanelProps>;
